<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 500px;
            height: 300px;
            border: 1px solid #000;
            color: white;
        }

        .box1{
            background-image: url('../d0909/img/1.jpg');
            /* background-size: 100% 100%; */
        }

        .box2{
            overflow: hidden;
        }

        .box2 img{
            /* width: 100%; */
            /* height: 100%; */
        }

    </style>
</head>
<body>
    <div class="box box1">
        123
    </div>
    <div class="box box2">
        <img src="../d0909/img/1.jpg" alt="">
    </div>
</body>
</html>